package com.mysen.sso.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mysen.sso.model.Role;

public interface RoleMapper {

    int selectCount(Role record);

    List<Role> selectByPage(Role record);

    int deleteById(String buildingId);

    int insert(Role record);

    Role selectById(String buildingId);

    int updateById(Role record);
    
	int addPermissions(Role record);

	List<Role> selectTree(@Param("pId") String pid);
}